//  -- tunable params
#ifndef THD
#define THD _thd
#endif

#ifndef BSZ
#define BSZ _bsz
#endif

#ifndef H_THRESH
#define H_THRESH _h_thresh
#endif

#ifndef SM_VLEN 
#define SM_VLEN 1
#endif

#define D_THRESH _d_thresh // currently disabled

#ifndef SB_MAX
#define SB_MAX (1<<30)
#endif

#define SBIDX(base,i,j) ((base)+(i)+(j)*sbsize)
#define SMIDX(i,j) ((i)+(j)*BSZ) 

extern uint _thd;
extern uint _bsz;
extern uint _h_thresh;
extern uint _d_thresh;
